package com.hyk.commonLib.common.utils.dataBinding.bindingAdapter;

import android.widget.ImageView;

import androidx.databinding.BindingAdapter;

import com.hyk.commonLib.common.utils.ResUtils;

public class ImageViewAdapter {
    @BindingAdapter("imageRes")
    public static void setImageRes(ImageView view, int imageRes) {
        view.setImageDrawable(ResUtils.getDrawable(imageRes));
    }
}
